home *** CD-ROM | disk | FTP | other *** search
/ Shareware Super Platinum 8 / Shareware Super Platinum 8.iso / mac / WIN_PRO / VIEWS.ZIP;1 / CVDZIP.EXE / CVCOLOR.H < prev    next >
Encoding:
C/C++ Source or Header  |  1992-09-20  |  827 b   |  48 lines

  1. /*
  2.     cvcolor.h
  3.  
  4.     Custom color control
  5.     
  6.     C++/Views 2.0 Demo
  7.     Copyright (c) 1992, by Liant Software Corp.
  8.     ALL RIGHTS RESERVED.
  9.  
  10.     Revision History:
  11.     -----------------
  12. */
  13.  
  14. #ifndef cvcolor_h
  15. #define cvcolor_h
  16. #include "control.h"
  17.  
  18. class ColorControl : public VControl {
  19.  
  20. private:
  21.     int        currColor;
  22.     method    clickMthd;
  23.  
  24. public:
  25.     ColorControl(VFrame&, VWindow*, short);
  26.     ColorControl();
  27.     ~ColorControl();
  28.  
  29.     VClass *iam();
  30.     boolean free();
  31.  
  32.     boolean erased();
  33.     boolean paint();
  34.     boolean mouseUp(int mx, int my);
  35.     boolean mouseDn(int mx, int my);
  36.     boolean mouseMv(int mx, int my, int bStat);
  37.  
  38.     void    uponClick(id clnt, method mthd);
  39.  
  40.     void    setColor(int clr);
  41.     boolean getMouseColor(int mx, int my, int *clr);
  42.  
  43.     rgbColor getColor();
  44. };
  45.  
  46. extern VClass *ColorControlCls;
  47. #endif /* cvcolor_h */
  48.